package ie.timalb.chess.main.core.pieces;

import ie.timalb.chess.main.core.movement.types.OneSquareDiagonalToKill;
import ie.timalb.chess.main.core.movement.types.OneSquareForwardMovement;
import ie.timalb.chess.main.core.movement.types.TwoSquaresForwardOnInitialMovement;


public class Pawn extends Piece {
	
	public Pawn(Color color) {
		super (color);
		getTypesOfMovement().add(new TwoSquaresForwardOnInitialMovement ());
		getTypesOfMovement().add(new OneSquareForwardMovement ());
		getTypesOfMovement().add(new OneSquareDiagonalToKill ());
	}	

	@Override
	public boolean isFirstRowPiece() {
		return true;
	}

	@Override
	public String getName() {
		return "pawn";
	}
	
}
